package com.jiangyg.mall.ware.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiangyg.mall.ware.entity.Purchase;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 类描述：采购信息
 *
 * @author jiangyg
 * @email email@jiangyg.com
 * @date 2021-10-18 22:33:27
 */
@Mapper
public interface PurchaseDao extends BaseMapper<Purchase> {

    /**
     * 功能描述：计算总金额
     *
     * @param id 采购单ID
     * @return 条数
     */
    int computeAmountPurchase(@Param("id") Long id);

}
